(man): completion-ignore-case t for friendliness and since man
authorKevin Ryde <user42@zip.com.au>
Wed, 25 Nov 2009 22:51:07 +0000 (22:51 +0000)
committerKevin Ryde <user42@zip.com.au>
Wed, 25 Nov 2009 22:51:07 +0000 (22:51 +0000)
itself is case-insensitive on the command line.

lisp/man.el

index cbec29f125014e085f9f19a8d808acb04f8a4b5b..050ebed81a0e44ef0d957ef50379563319e70f1a 100644 (file)
@@ -799,6 +799,13 @@ all sections related to a subject, put something appropriate into the
 `Man-switches' variable, which see."
   (interactive
    (list (let* ((default-entry (Man-default-man-entry))
+               ;; ignore case because that's friendly for bizarre
+               ;; caps things like the X11 function names and because
+               ;; "man" itself is case-sensitive on the command line
+               ;; so you're accustomed not to bother about the case
+               ;; ("man -k" is case-insensitive similarly, so the
+               ;; table has everything available to complete)
+               (completion-ignore-case t)
                (input (completing-read
                        (format "Manual entry%s"
                                (if (string= default-entry "")